<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link href="css/emailValidation.css" rel="stylesheet" />
	</head>

	<body>
		
		
		 <div class="validation1">
		  <a class="mui-action-back " style="margin-left: 10px;">
				<span class="mui-icon mui-icon-closeempty" style="color:black;font-size: 50px;"></span>
			</a>
		 </div>
		 <div class="input1">
		 	<input id="emailValidation" type="text"  maxlength="6" placeholder="请输入您的邮箱验证码"></input>
		 </div>
		 <div style="width: 100%; height: 60PX;"></div>
		 <div style="width: 35%;height: 30px;float: left;"></div>
		 <button id="btnv" type="button" class="mui-btn mui-btn-success button1">提交邮箱验证 </button>
		 
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
		</script>
		
		
		<script src="js/jquery.min.js"></script>
		 <script src="js/url.js"></script>
		   
		<script>
			/*
			 如果你要用jQuery必须将下面这行代码放在第一行，然后将$符号换成jQuery
			 * */
			$.noConflict();
			 document.getElementById("btnv").addEventListener("tap",function(){
				jQuery.ajax({
		    	type:"post",
		    	url:serverip.ip+'/register/emailcheck',
		    	data:{"emailcheck":document.getElementById("emailValidation").value},
		    	dataType:'json',
				 xhrFields: {
                withCredentials: true
                  },
                  crossDomain: true,
		    	success:function(data){
		    		if(data==1){
		    			mui.openWindow({
		    			url:'login.html'
		    		})
		    		}
		    		
		    	}
		        });
			});
			
		</script>
		
		
		
		
		
		
		
		
		
		
		
		
		
	</body>

</html>